package com.study.dto;

import java.util.ArrayList;

public class Dog extends Animal {
    @Override
    public void eat() {
        System.out.println("eat meat");
    }

    @Override
    public void sleep() {
        System.out.println("sleep one day");
    }

    public static void main(String[] args) {
        System.out.println("ok");
        Animal animal = new Dog();
        animal.eat();
        animal.sleep();
        animal.run();
        ArrayList<String> arrayList = new ArrayList();
        arrayList.add("12");
        arrayList.add("23");
        arrayList.add("34");
        System.out.println(arrayList);
        String s = "[12, 23, 34]";
        System.out.println(arrayList.toArray()[0]);
        //System.out.println((ArrayList<String>)s);
    }

}
